<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil: Référence du fichier src/Population.c</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier src/Population.c</div>  </div>
</div><!--header-->
<div class="contents">

<p>Code des fonctions du module <a class="el" href="struct_population.html" title="Informations définissant la population.">Population</a>.  
<a href="#details">Plus de détails...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_population_8h_source.html">Population.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_personnage_8h_source.html">Personnage.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a18ee8396081c29d0f7f9e151a79dbe6f">initPopulation</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise les valeurs de la population.  <a href="#a18ee8396081c29d0f7f9e151a79dbe6f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a7fe9136b97e3e699811ad257fabd1173">creerPopulation</a> (<a class="el" href="struct_population.html">Population</a> **population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise la population.  <a href="#a7fe9136b97e3e699811ad257fabd1173"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ac25efbe53d8168a16aee61224402611b">ajouterMembre</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajoute un membre à lapopulation.  <a href="#ac25efbe53d8168a16aee61224402611b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#afc075b103ba246b12537994cc0366119">retirerMembre</a> (<a class="el" href="struct_population.html">Population</a> *population, <a class="el" href="_personnage_8h.html#af6991d63f26e86107639b90cabbd8cf0">Personnage</a> *personnage)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retire un membre à la population.  <a href="#afc075b103ba246b12537994cc0366119"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="_personnage_8h.html#af6991d63f26e86107639b90cabbd8cf0">Personnage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a5bb6102901f0425cec5bfd294924b5f1">getPersonnage</a> (<a class="el" href="struct_population.html">Population</a> *population, const unsigned int ID)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le liens vers un personnage  <a href="#a5bb6102901f0425cec5bfd294924b5f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#acc250da91ff001ef2f0bb57c87ba7f69">getEffectifTotal</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère la valeur de l'effectif de la population.  <a href="#acc250da91ff001ef2f0bb57c87ba7f69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#af481eadf1370312db5e5b29308a01e00">getFecondite</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le taux de fécondité de la population.  <a href="#af481eadf1370312db5e5b29308a01e00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#aa2869cbd89376647d64c82ba9a001217">getMortalite</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère la valeur du taux de mortalité de la population.  <a href="#aa2869cbd89376647d64c82ba9a001217"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ac71c5cb4a3d4afe4bed542fdb855bda5">getImmigration</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le nombre d'immigrants arrivant dans la population.  <a href="#ac71c5cb4a3d4afe4bed542fdb855bda5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a8fdadb9d86c08fe726019c4252b00439">getEmigration</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le nombre d'emigrants de la population.  <a href="#a8fdadb9d86c08fe726019c4252b00439"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a1cb2a58c33a3591b1fe6597953cd1094">getMoral</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère la valeur de moral de la population.  <a href="#a1cb2a58c33a3591b1fe6597953cd1094"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a7870ad0662aac75a370cdfa87e504cf5">getNbPersAffames</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le nombre de personnes affamées dans la population.  <a href="#a7870ad0662aac75a370cdfa87e504cf5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_tab_comp.html">TabComp</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ac0ac1d3144053d659497c2a708139a60">getTabCompPop</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le tableau des comportements possibles pour les membres de la population  <a href="#ac0ac1d3144053d659497c2a708139a60"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ac5d64883d7c6890383958baeebfe5087">setEffectifTotal</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varEffectif)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument à l'effectif total  <a href="#ac5d64883d7c6890383958baeebfe5087"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a92b527e083e0f425c4e99f878abcbe2c">setFecondite</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varFecondite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au taux de fécondité  <a href="#a92b527e083e0f425c4e99f878abcbe2c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#af8662b4282672b44fa9689a564ccd826">setMortalite</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varMortalite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au taux de mortalité  <a href="#af8662b4282672b44fa9689a564ccd826"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a2beba189cc4a0f00efb0aa29c5f8b62c">setImmigration</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varImmigration)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au nombre d'immigrants  <a href="#a2beba189cc4a0f00efb0aa29c5f8b62c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ae3e30fd08ae609d7b7f0b90b713cc88b">setEmigration</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varEmigration)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au nombre d'emigrants  <a href="#ae3e30fd08ae609d7b7f0b90b713cc88b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#aaf27d5041730a24bc26ec856ff850808">setMoral</a> (<a class="el" href="struct_population.html">Population</a> *population, const int varMoral)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au moral de la population  <a href="#aaf27d5041730a24bc26ec856ff850808"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#ac532eae2d6e66a615381ba3d305e01d2">setNbPersAffames</a> (<a class="el" href="struct_population.html">Population</a> *population, unsigned int varNbPersAffames)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute la valeur passée en argument au nombre de personnes affamées  <a href="#ac532eae2d6e66a615381ba3d305e01d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#aca5b33d4336888f94d37ff2f8b57872d">setTabCompPop</a> (<a class="el" href="struct_population.html">Population</a> *population, <a class="el" href="struct_tab_comp.html">TabComp</a> *tabComp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">attribue au champ tabComp un tableau des comportements passé en paramètre  <a href="#aca5b33d4336888f94d37ff2f8b57872d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a310b4ec134cc9023b150f090c7ef3daf">detruireMembres</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">libère la mémoire occupée par le tableau de membres  <a href="#a310b4ec134cc9023b150f090c7ef3daf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_population_8c.html#a286e1d4c71407fd56090fb598e730087">detruirePopulation</a> (<a class="el" href="struct_population.html">Population</a> *population)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">libère la mémoire occupée par la population  <a href="#a286e1d4c71407fd56090fb598e730087"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><p>Code des fonctions du module <a class="el" href="struct_population.html" title="Informations définissant la population.">Population</a>. </p>
<p>Intégralité du code de gestion de la population ainsi que les fonctions de test s'y rapportant Une description de la structure Papulation est fournie à la rubrique <a class="el" href="_population_8h.html">Population.h</a></p>
</div><hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="ac25efbe53d8168a16aee61224402611b"></a><!-- doxytag: member="Population.c::ajouterMembre" ref="ac25efbe53d8168a16aee61224402611b" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#ac25efbe53d8168a16aee61224402611b">ajouterMembre</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ajoute un membre à lapopulation. </p>
<p>Ajoute un membre à la liste de membres et initialise le personnage correspondant </p>

</div>
</div>
<a class="anchor" id="a7fe9136b97e3e699811ad257fabd1173"></a><!-- doxytag: member="Population.c::creerPopulation" ref="a7fe9136b97e3e699811ad257fabd1173" args="(Population **population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a7fe9136b97e3e699811ad257fabd1173">creerPopulation</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> **&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialise la population. </p>
<p>Initialise alloue dans la mémoire la population puis la liste des Personnages ainsi que les paramètres démographiques et le décompte des nains en état de faim </p>

</div>
</div>
<a class="anchor" id="a310b4ec134cc9023b150f090c7ef3daf"></a><!-- doxytag: member="Population.c::detruireMembres" ref="a310b4ec134cc9023b150f090c7ef3daf" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a310b4ec134cc9023b150f090c7ef3daf">detruireMembres</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>libère la mémoire occupée par le tableau de membres </p>

</div>
</div>
<a class="anchor" id="a286e1d4c71407fd56090fb598e730087"></a><!-- doxytag: member="Population.c::detruirePopulation" ref="a286e1d4c71407fd56090fb598e730087" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a286e1d4c71407fd56090fb598e730087">detruirePopulation</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>libère la mémoire occupée par la population </p>

</div>
</div>
<a class="anchor" id="acc250da91ff001ef2f0bb57c87ba7f69"></a><!-- doxytag: member="Population.c::getEffectifTotal" ref="acc250da91ff001ef2f0bb57c87ba7f69" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="_population_8h.html#acc250da91ff001ef2f0bb57c87ba7f69">getEffectifTotal</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère la valeur de l'effectif de la population. </p>

</div>
</div>
<a class="anchor" id="a8fdadb9d86c08fe726019c4252b00439"></a><!-- doxytag: member="Population.c::getEmigration" ref="a8fdadb9d86c08fe726019c4252b00439" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_population_8h.html#a8fdadb9d86c08fe726019c4252b00439">getEmigration</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le nombre d'emigrants de la population. </p>

</div>
</div>
<a class="anchor" id="af481eadf1370312db5e5b29308a01e00"></a><!-- doxytag: member="Population.c::getFecondite" ref="af481eadf1370312db5e5b29308a01e00" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_population_8h.html#af481eadf1370312db5e5b29308a01e00">getFecondite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le taux de fécondité de la population. </p>

</div>
</div>
<a class="anchor" id="ac71c5cb4a3d4afe4bed542fdb855bda5"></a><!-- doxytag: member="Population.c::getImmigration" ref="ac71c5cb4a3d4afe4bed542fdb855bda5" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_population_8h.html#ac71c5cb4a3d4afe4bed542fdb855bda5">getImmigration</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le nombre d'immigrants arrivant dans la population. </p>

</div>
</div>
<a class="anchor" id="a1cb2a58c33a3591b1fe6597953cd1094"></a><!-- doxytag: member="Population.c::getMoral" ref="a1cb2a58c33a3591b1fe6597953cd1094" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_population_8h.html#a1cb2a58c33a3591b1fe6597953cd1094">getMoral</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère la valeur de moral de la population. </p>

</div>
</div>
<a class="anchor" id="aa2869cbd89376647d64c82ba9a001217"></a><!-- doxytag: member="Population.c::getMortalite" ref="aa2869cbd89376647d64c82ba9a001217" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_population_8h.html#aa2869cbd89376647d64c82ba9a001217">getMortalite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère la valeur du taux de mortalité de la population. </p>

</div>
</div>
<a class="anchor" id="a7870ad0662aac75a370cdfa87e504cf5"></a><!-- doxytag: member="Population.c::getNbPersAffames" ref="a7870ad0662aac75a370cdfa87e504cf5" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="_population_8h.html#a7870ad0662aac75a370cdfa87e504cf5">getNbPersAffames</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le nombre de personnes affamées dans la population. </p>

</div>
</div>
<a class="anchor" id="a5bb6102901f0425cec5bfd294924b5f1"></a><!-- doxytag: member="Population.c::getPersonnage" ref="a5bb6102901f0425cec5bfd294924b5f1" args="(Population *population, const unsigned int ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_personnage_8h.html#af6991d63f26e86107639b90cabbd8cf0">Personnage</a>* <a class="el" href="_population_8h.html#a5bb6102901f0425cec5bfd294924b5f1">getPersonnage</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>ID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le liens vers un personnage </p>
<p>récupère un pointeurs vers un personnage à partir de son id d'identification </p>

</div>
</div>
<a class="anchor" id="ac0ac1d3144053d659497c2a708139a60"></a><!-- doxytag: member="Population.c::getTabCompPop" ref="ac0ac1d3144053d659497c2a708139a60" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_tab_comp.html">TabComp</a>* <a class="el" href="_population_8h.html#ac0ac1d3144053d659497c2a708139a60">getTabCompPop</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le tableau des comportements possibles pour les membres de la population </p>

</div>
</div>
<a class="anchor" id="a18ee8396081c29d0f7f9e151a79dbe6f"></a><!-- doxytag: member="Population.c::initPopulation" ref="a18ee8396081c29d0f7f9e151a79dbe6f" args="(Population *population)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a18ee8396081c29d0f7f9e151a79dbe6f">initPopulation</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialise les valeurs de la population. </p>
<p>Initialise la liste des Personnages ainsi que les paramètres démographiques et le décompte des nains en état de faim </p>

</div>
</div>
<a class="anchor" id="afc075b103ba246b12537994cc0366119"></a><!-- doxytag: member="Population.c::retirerMembre" ref="afc075b103ba246b12537994cc0366119" args="(Population *population, Personnage *personnage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#afc075b103ba246b12537994cc0366119">retirerMembre</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#af6991d63f26e86107639b90cabbd8cf0">Personnage</a> *&#160;</td>
          <td class="paramname"><em>personnage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retire un membre à la population. </p>
<p>Retire une structure Personnages de la liste des membres contenus dans la population </p>

</div>
</div>
<a class="anchor" id="ac5d64883d7c6890383958baeebfe5087"></a><!-- doxytag: member="Population.c::setEffectifTotal" ref="ac5d64883d7c6890383958baeebfe5087" args="(Population *population, const int varEffectif)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#ac5d64883d7c6890383958baeebfe5087">setEffectifTotal</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varEffectif</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument à l'effectif total </p>

</div>
</div>
<a class="anchor" id="ae3e30fd08ae609d7b7f0b90b713cc88b"></a><!-- doxytag: member="Population.c::setEmigration" ref="ae3e30fd08ae609d7b7f0b90b713cc88b" args="(Population *population, const int varEmigration)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#ae3e30fd08ae609d7b7f0b90b713cc88b">setEmigration</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varEmigration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au nombre d'emigrants </p>

</div>
</div>
<a class="anchor" id="a92b527e083e0f425c4e99f878abcbe2c"></a><!-- doxytag: member="Population.c::setFecondite" ref="a92b527e083e0f425c4e99f878abcbe2c" args="(Population *population, const int varFecondite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a92b527e083e0f425c4e99f878abcbe2c">setFecondite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varFecondite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au taux de fécondité </p>

</div>
</div>
<a class="anchor" id="a2beba189cc4a0f00efb0aa29c5f8b62c"></a><!-- doxytag: member="Population.c::setImmigration" ref="a2beba189cc4a0f00efb0aa29c5f8b62c" args="(Population *population, const int varImmigration)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#a2beba189cc4a0f00efb0aa29c5f8b62c">setImmigration</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varImmigration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au nombre d'immigrants </p>

</div>
</div>
<a class="anchor" id="aaf27d5041730a24bc26ec856ff850808"></a><!-- doxytag: member="Population.c::setMoral" ref="aaf27d5041730a24bc26ec856ff850808" args="(Population *population, const int varMoral)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#aaf27d5041730a24bc26ec856ff850808">setMoral</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varMoral</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au moral de la population </p>

</div>
</div>
<a class="anchor" id="af8662b4282672b44fa9689a564ccd826"></a><!-- doxytag: member="Population.c::setMortalite" ref="af8662b4282672b44fa9689a564ccd826" args="(Population *population, const int varMortalite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#af8662b4282672b44fa9689a564ccd826">setMortalite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>varMortalite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au taux de mortalité </p>

</div>
</div>
<a class="anchor" id="ac532eae2d6e66a615381ba3d305e01d2"></a><!-- doxytag: member="Population.c::setNbPersAffames" ref="ac532eae2d6e66a615381ba3d305e01d2" args="(Population *population, unsigned int varNbPersAffames)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#ac532eae2d6e66a615381ba3d305e01d2">setNbPersAffames</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>varNbPersAffames</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute la valeur passée en argument au nombre de personnes affamées </p>

</div>
</div>
<a class="anchor" id="aca5b33d4336888f94d37ff2f8b57872d"></a><!-- doxytag: member="Population.c::setTabCompPop" ref="aca5b33d4336888f94d37ff2f8b57872d" args="(Population *population, TabComp *tabComp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_population_8h.html#aca5b33d4336888f94d37ff2f8b57872d">setTabCompPop</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_population.html">Population</a> *&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_tab_comp.html">TabComp</a> *&#160;</td>
          <td class="paramname"><em>tabComp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>attribue au champ tabComp un tableau des comportements passé en paramètre </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:15 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
